//
//  CALayer+Layer.m
//  Biodynamic
//
//  Created by Felix Yin on 2019/4/28.
//  Copyright © 2019 ZhangFang. All rights reserved.
//

#import "CALayer+Layer.h"

@implementation CALayer (Layer)

- (void)setLayerShadow:(UIColor *)color offset:(CGSize)offset radius:(CGFloat)radius {
    self.shadowColor = color.CGColor;
    self.shadowOffset = offset;
    self.shadowRadius = radius;
    self.shadowOpacity = 1;
    self.shouldRasterize = YES;
    self.rasterizationScale = [UIScreen mainScreen].scale;
}

@end
